package dk.oldommer.bjw.model.user;

public class User implements UserValues {

	private String userName;
	private String firstName;
	private String lastName;
	private String addressLine1;
	private String addressLine2;
	private String zipCode;
	private String city;
	private String emailAddress;

	private Long id;

	public User() {

	}

	public User(UserValues userValues) {
		setValues(userValues);
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getAddressLine1() {
		return addressLine1;
	}

	public void setAddressLine1(String addressLine1) {
		this.addressLine1 = addressLine1;
	}

	public String getAddressLine2() {
		return addressLine2;
	}

	public void setAddressLine2(String addressLine2) {
		this.addressLine2 = addressLine2;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public void setValues(UserValues userValues) {
		userName = userValues.getUserName();
		firstName = userValues.getFirstName();
		lastName = userValues.getLastName();
		addressLine1 = userValues.getAddressLine1();
		addressLine2 = userValues.getAddressLine2();
		zipCode = userValues.getZipCode();
		city = userValues.getCity();
		emailAddress = userValues.getEmailAddress();
	}

}
